<%-- 
    Document   : fillDay
    Created on : 4/09/2009, 09:31:56 PM
    Author     : josue
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%String s;%>
<html>

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript">

        cadVariables = location.search.substring(1,location.search.length);
        arrVariables = cadVariables.split("&");
        for (i=0; i<arrVariables.length; i++) {
        arrVariableActual = arrVariables[i].split("=");
        if (isNaN(parseFloat(arrVariableActual[1])))
        eval(arrVariableActual[0]+"='"+unescape(arrVariableActual[1])+"';");
       else
        eval(arrVariableActual[0]+"="+arrVariableActual[1]+";");
        
        }
        
      dia=arrVariables[3];
        mes=arrVariables[1];
       ano=arrVariables[2];


       /*

            url=location.href
            val=url.indexOf("?")
            dia= url.substring(val+1,url.length)
        
*/

        </script>
        <title>Modificar Dia</title>
    </head>
    <body bgcolor="white">
        <h1>
            Fecha:
            <script type="text/javascript">
                dia=arrVariables[0];
        mes=arrVariables[1];
       ano=arrVariables[2];

          var  v=dia+'-'+mes+'-'+ano;
            document.write(v);
              

            </script>
        </h1>

        Ingrese los datos que desee para este dia :
        <h1> </h1>
        <form name="formDia" action="/proyectoEDD/calendarioServlet" method="POST">
            Festividad: <input type="text" name="festividad"/><br>
            <script type="text/javascript">
               
                var s='<input type="hidden" name="fecha" value='+dia+'>';
                document.write(s);

            </script>
            <input type="submit" value="ok" name="okbutton" />
        </form>

    </body>
</html>
